package com.olda.play.auth.service;

import com.olda.play.rpc.CommonResponseDto;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.annotation.RequestParam;

import java.security.Principal;
import java.util.Map;

public interface AuthService {

    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    CommonResponseDto<String> getAuthToken(String username) ;

    CommonResponseDto<String> getAuthToken1(String username) ;

    Object postAccessToken(Principal principal, @RequestParam Map<String, String> parameters) throws HttpRequestMethodNotSupportedException;


}
